package net.sx.minemodule.mvp.presenters;

import android.databinding.ObservableField;
import android.text.TextUtils;
import android.util.Log;

import com.kedll.library.mvp.BasePresenter;
import com.kedll.library.mvp.BaseView;
import com.kedll.library.util.ToastUtil;

public class MineFeedbackUploadPresenter extends BasePresenter<BaseView> {

    public MineFeedbackUploadPresenter(BaseView view) {
        super(view);
    }

    public boolean submitCheck(int type, String info, String phone) {
        if (type == 0) {
            ToastUtil.showToast("请选择问题类型");
            return false;
        }
        if (TextUtils.isEmpty(info)) {
            ToastUtil.showToast("请填写问题描述");
            return false;
        }
        if (TextUtils.isEmpty(phone)) {
            ToastUtil.showToast("请填写联系方式");
            return false;
        }
        return true;
    }
}
